<template>
  <button @click="fun1">点击</button>
</template>

<script>
import { ref } from 'vue'
import { message } from 'ant-design-vue'

export default {
  name: 'Hello',
  setup() {
    const num = ref(0)

    let fun1 = function fun() {
      num.value++
      message.info('value=' + num.value)
    }

    return {
      fun1,
    }
  },
}
</script>

<style scoped></style>
